
import 'package:flutter/material.dart';
import 'package:flutter_app/openeye/widget/app_bar.dart';

class Splash extends StatelessWidget {
  const Splash({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return  materialPage(appBar:appBar("官方推荐开屏页"),page: createPage());
  }

  createPage() {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        textDirection: TextDirection.ltr,
        children: const <Widget>[
          FlutterLogo(size: 48),
          Padding(
            padding: EdgeInsets.all(32),
            child: Text(
              'This app is only meant to be run under the Flutter debugger',
              textDirection: TextDirection.ltr,
              textAlign: TextAlign.center,
              style: TextStyle(color: Colors.black87),
            ),
          ),
        ],
      ),
    );
  }
}
